
import 'package:flutter/services.dart';
import 'package:flutter_09_game/base/controller/base_controller.dart';
import 'package:flutter_09_game/config/app_config.dart';
import 'package:flutter_09_game/generated/locales.g.dart';
import 'package:flutter_09_game/user/app_user_manager.dart';
import 'package:flutter_09_game/utils/loading/loading_utils.dart';
import 'package:flutter_09_game/utils/permisson/permission_utils.dart';
import 'package:get/get.dart';

import 'package:permission_handler/permission_handler.dart';

class PromotionLinkLogic extends BaseController {
  copyShareLink() {
    Clipboard.setData(ClipboardData(
        text:
            '${AppConfig.shareUrl}${AppConfig.shareUrlCenter}${AppUserManager().user.value?.inviteCode ?? ''}'));
    LoadingUtils.showToast(LocaleKeys.copySuccess.tr);
  }


}
